import pymongo

myclient = pymongo.MongoClient("mongodb://root:root@localhost:27017/")
mydb = myclient["mymongo"]

if __name__ == '__main__':
    mydb = mydb["mylist"]
    x = mydb.find_one({"name": "Taobao"})
    print(x)
    y = mydb.find()
    print(list(y))
